package vip.finance.makemoney.apiSpider.eastmoney;

import lombok.Data;

import java.io.Serializable;

/**
 * 实时报价
 *
 * @author 杨滨
 * @date 2023年02月09日
 */
@Data
public class ResultQuoteSnapshot implements Serializable {
    /**
     * code : 159607
     * name : 中概互联网ETF
     * sname : 中概互联
     * topprice : 0.945
     * bottomprice : 0.773
     * status : 0
     * fivequote : {"yesClosePrice":"0.859","openPrice":"0.852","sale1":"0.877","sale2":"0.878","sale3":"0.879","sale4":"0.880","sale5":"0.881","buy1":"0.876","buy2":"0.875","buy3":"0.874","buy4":"0.873","buy5":"0.872","sale1_count":3705,"sale2_count":73784,"sale3_count":43020,"sale4_count":25324,"sale5_count":14780,"buy1_count":47190,"buy2_count":73246,"buy3_count":17288,"buy4_count":14457,"buy5_count":8656}
     * realtimequote : {"open":"0.852","high":"0.878","low":"0.850","avg":"0.863","zd":"0.018","zdf":"2.10%","turnover":"34.68%","currentPrice":"0.877","volume":"6334807","amount":"546883440","wp":"3507103","np":"2827704","time":"14:29:42"}
     * pricelimit : null
     * tradeperiod : 0
     */

    private String code;
    private String name;
    private String sname;
    private String topprice;
    private String bottomprice;
    private int status;
    private FivequoteBean fivequote;
    private RealtimequoteBean realtimequote;
    private Object pricelimit;
    private int tradeperiod;

    @Data
    public static class FivequoteBean implements Serializable {
        /**
         * yesClosePrice : 0.859
         * openPrice : 0.852
         * sale1 : 0.877
         * sale2 : 0.878
         * sale3 : 0.879
         * sale4 : 0.880
         * sale5 : 0.881
         * buy1 : 0.876
         * buy2 : 0.875
         * buy3 : 0.874
         * buy4 : 0.873
         * buy5 : 0.872
         * sale1_count : 3705
         * sale2_count : 73784
         * sale3_count : 43020
         * sale4_count : 25324
         * sale5_count : 14780
         * buy1_count : 47190
         * buy2_count : 73246
         * buy3_count : 17288
         * buy4_count : 14457
         * buy5_count : 8656
         */

        private String yesClosePrice;
        private String openPrice;
        private String sale1;
        private String sale2;
        private String sale3;
        private String sale4;
        private String sale5;
        private String buy1;
        private String buy2;
        private String buy3;
        private String buy4;
        private String buy5;
        private int sale1_count;
        private int sale2_count;
        private int sale3_count;
        private int sale4_count;
        private int sale5_count;
        private int buy1_count;
        private int buy2_count;
        private int buy3_count;
        private int buy4_count;
        private int buy5_count;
    }

    @Data
    public static class RealtimequoteBean implements Serializable {
        /**
         * open : 0.852
         * high : 0.878
         * low : 0.850
         * avg : 0.863
         * zd : 0.018
         * zdf : 2.10%
         * turnover : 34.68%
         * currentPrice : 0.877
         * volume : 6334807
         * amount : 546883440
         * wp : 3507103
         * np : 2827704
         * time : 14:29:42
         */

        private String open;
        private String high;
        private String low;
        private String avg;
        private String zd;
        private String zdf;
        private String turnover;
        private String currentPrice;
        private String volume;
        private String amount;
        private String wp;
        private String np;
        private String time;
    }
}
